unit dbcComp_Gnr;
// Database Comparer VCL v.3.0
// Copyright (C) 1998-2006, by Boris Loboda
// www.CleverComponents.com
{$I Comparer.INC}

// Generator's compare

// 27.03.2005 (BL)
// - Compare description for generators (FB2).

interface

Uses Classes, dbcTypes, dbcClasses;

Procedure GenScriptGenrCreate(dbc: TCustomDBComparer);
procedure GenScriptGenrAlter(dbc: TCustomDBComparer);
Procedure GenScriptGenrDrop(dbc: TCustomDBComparer);

type
  TGnrData = class(TDbObj)
  private
    fMaxValue: string;
    fCache: string;
    fNoCache: Boolean;
    procedure SetMaxValue(aValue: string);
    procedure SetCache(aValue: string);
    procedure SetNoCache(aValue: Boolean);
  public
    Value: Integer; // IB - current value
    // Oracle sequence
    MinValue,
    StartWith,
    IncrementBy, OwnedBy: String;
    NoMinValue, NoMaxValue, Order, Cycle, Temporary: Boolean;
    constructor Create(aObjs: TCustomObjs);
    function Def():string; override;
    function DropDef(): String; override;
    function ParamDef(): String;
    property MaxValue: string read fMaxValue write SetMaxValue;
    property Cache: string read fCache write SetCache;
    property NoCache: Boolean read fNoCache write SetNoCache;
  end;

implementation

//The full source code is available on purchasing the product

end.
